//
//  AMapUtil.h
//  OnlineRetailers
//
//  Created by mini2 on 2017/6/16.
//  Copyright © 2017年 OnlineRetailers. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^LocationBlock)(NSString *longitude, NSString *latitude);
typedef void(^MapSearchBlock)(NSString *longitude, NSString *latitude);

typedef void(^LocationAddressBlock)(NSString *longitude, NSString *latitude,NSString *addres,NSString *lableAddress);


@interface AMapUtil : NSObject

///地址检索回调
@property(nonatomic, copy) MapSearchBlock onMapSearchBlock;

///初始化高德地图
-(void)initAMap;
///开启一次定位
-(void)opneOneLocationWithBlock:(LocationBlock)block;

-(void)opneOneLocationAddressWithBlock:(LocationAddressBlock)block;

///地址检索
-(void)mapSearchForAddress:(NSString*)addr andBlock:(MapSearchBlock)block;

@end
